/*
 * @Author: wuqingchun
 * @Date: 2024-06-21 10:03:38
 * @Description: httpserver 公共头文件
 * @LastEditors: wuqingchun
 * @LastEditTime: 2024-06-29 16:58:47
 */
#ifndef __HTTP_H__
#define __HTTP_H__

#include <stddef.h>  // for size_t

#include <netinet/in.h>

#define HTTP_APP_NAME "httpd"
#define HTTP_APP_VERSION "1.0.0.1"

typedef struct tagHTTPString
{
    char*  pcStr;
    size_t ulLen;
}HTTP_STRING_S;


typedef struct tagHTTPBuf
{
    char* pcStart;
    char* pcEnd;
}HTTP_BUF_S;

// 配置结构体定义
typedef struct tagHTTPConf
{
    union 
    {
        sockaddr_in  stAddr;
        sockaddr_in6 stAddr6;
    };
    
}HTTP_CONF_S;




#endif //__HTTP_H__